#include "junix.h"

char* jtime(time_t t)
{
	char *s=malloc(1024);
	struct tm *tm;

	tm = localtime(&t);

	sprintf(s, "%02d%02d%02d%02d%04d.%02d",
		 tm->tm_mon+1, tm->tm_mday, tm->tm_hour,
		 tm->tm_min, tm->tm_year + 1900, tm->tm_sec);
	return s;
}



int main(int argc, char **argv)
{
	time_t t=time(NULL);
	char *p=jtime(t);
	printf("%s\n",p);

	return 0;
}

